<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="com.cys.bean.DripControl,com.cys.dao.DripControlDao"%>
<%
	request.setCharacterEncoding("UTF-8");
	String dev_drip_controlor = request.getParameter("d_no");
	String cmd = request.getParameter("de_cmd");
	//CurtainControl curtainControl=new CurtainControl();
	DripControl dripControl =new DripControl();
	
	if(dev_drip_controlor!=null&&!dev_drip_controlor.equals(""))
		dripControl.setDev_drip_controlor(Integer.parseInt(dev_drip_controlor));
	if(cmd!=null&&!cmd.equals(""))
		dripControl.setCmd(Integer.parseInt(cmd));
	
	boolean res = DripControlDao.getInstance().DripControlCmd(dripControl);
	if(res){
		System.out.println("添加成功");
		request.getRequestDispatcher("Control.jsp").forward(request,response);
		
	}
	else{
		System.out.println("添加是吧");
		response.sendRedirect("Control.jsp");
	}
%>